﻿@using FCZLM.Core.Models
@using Microsoft.AspNetCore.Http
@{
    var news = ViewBag.news as List<News>;
    var newcategory = ViewBag.newCategory as List<NewCategorys>;
}

 <link href="~/layui/css/layui.css" rel="stylesheet" />
 <style>
     ul li{
         float:left;
         margin-left:60px
     }
 </style>
 <div class="pnt">
   <div class="pntLeft">
    <h2 class="Title">
        17商城
    
    </h2>
   </div><!--pntLeft/-->
   <div class="pntRight">
   <ul class="nav">
     <li class="navCur"><a href="/home/index">商城首页</a></li>
     <li><a href="/Product/index">商品中心</a></li>
     <li><a href="/news/index">新闻中心</a></li>
      <li>
            @if(@Context.Session.GetString(key:"user")==null){
							 <a href="/login/index">用户中心</a>
						}else{
							
							 <a href="/user/index">用户中心</a>
							
						}  
                        </li>
     <li><a href="/contact/index">联系我们</a></li>
    </ul><!--nav/-->
   </div><!--pntRight/-->
   <div class="clears"></div>
  </div><!--pnt/-->
 
 <div class="cont">
   <div class="contLeft" id="contLeft">
    <h3 class="leftTitle">帮助中心</h3>
    <dl class="helpNav">
      <dt class="help4">关于我们</dt>
      <dd><a href="/home/index">17官网</a></dd>
      <dd><a href="#">联系方式</a></dd>
      <dd><a href="/about/index" class="helpCur">关于我们</a></dd>
    </dl><!--helpNav/-->
   </div><!--contLeft/-->
   <div class="contRight">
       <ul>
            @foreach(var item in newcategory)
        {
              <li><h3><a href="/news/index2/@item.Id">@item.Name</a></h3></li>

        }
       </ul>
        <ul style="margin-top:50px">
                @foreach (var item in news)
                {
                    <li style="width:700px;padding-bottom:20px">
                         <a href="/newsdetails/index/@item.Id">
                        <div class="article-date">
                            <h3 style="width:700px;padding-bottom:20px">@item.Title</h3>
                            <p style="width:700px;padding-bottom:20px">@item.CreateTime</p>
                           
                        </div>
                        <div class="article-info" style="width:450px;padding-bottom:20px">
                           
                                
                                <p>@item.Summary</p>
                           
                        </div>
                         <img src="@item.Pic" width="200" height="120" style="margin-left:400px;margin-top:-130px" />
                         </a>
                    </li>
                }


            </ul>
    </div><!--contRight/-->
   <div class="clears"></div>
  </div><!--cont/-->